package cn.tedu.kof;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Timer;
import java.util.TimerTask;
import java.awt.Graphics;

public class World extends JPanel{
    public static final int WIDTH =700;
    public static final int HEIGHT =1200;

    public static final int START =0;
    public static final int ROLE = 1;
    public static final int RUNNING =2;
    public static final int PAUSE =3;
    public static final int GAME_OVER =4;
    public int state = START;

    Hero0 hero0 = new Hero0();
    Hero1 hero1 = new Hero1();

    public void action(){
        MouseAdapter m = new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                super.mouseClicked(e);
            }
        };
        Timer timer = new Timer();
        int interval =10;
        timer.schedule(new TimerTask() {
            @Override
            public void run() {

            }
        }, interval, interval);

    }
    public void paint(Graphics g ){

    }
    public static void main(String[] args) {
        JFrame frame = new JFrame();
        World world = new World();
        frame.add(world);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(WIDTH,HEIGHT);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);

        world.action();
    }
}
